package com.TheEndWork;

import java.util.Scanner;

/**
 * @authoer zsj
 * @date 2022/6/17 22:00
 */
public class demo {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int gn = 0;
        for (int i = 1; i <= n; i++) {
            int cur = i;
            int fi = 0;
            for (int j = 1; j <= i; j++) {
                if (i % j == 0) {
                    fi += j;
                }
            }
            gn += fi;
        }
        long t = (long) (Math.pow(10, 9) + 7);
        System.out.println(gcd(126,138));
        System.out.println(gn % t);
    }

    public static int gcd(int a, int b) {
        //gcd(a,b) = gcd(b,a mod b)
        if (b == 0) return a;
        return gcd(b, a % b);
    }
}
